/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.energy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.excesys.exsecs.energy.entity.PowerMonthFlow;
import com.excesys.exsecs.energy.mapper.PowerMonthFlowMapper;
import com.excesys.exsecs.energy.service.PowerMonthFlowService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 能耗表(月) 从总表定时取数据 存入
 *
 * @author pig code generator
 * @date 2023-12-22 16:39:46
 */
@Service
public class PowerMonthFlowServiceImpl extends ServiceImpl<PowerMonthFlowMapper, PowerMonthFlow> implements PowerMonthFlowService {

	@Override
	public Float sumPowerList(String timeValue) {
		return this.baseMapper.sumPowerList(timeValue);
	}

	@Override
	public List<Map<String, Object>> powerAnalyse(String timeValue) {
		return this.baseMapper.powerAnalyse(timeValue,"1");
	}

	@Override
	public List<Map<String, Object>> powerGroupBranchingByDate(String timeValue,String branchName) {
		return this.baseMapper.powerGroupBranchingByDate(timeValue,branchName);
	}

	@Override
	public Float powerSumByWhere(String timeValue) {
		return this.baseMapper.powerSumByWhere(timeValue);
	}

	@Override
	public List<Map<String, Object>> powerGroupAreaByDate(String timeValue, String areaName, String order) {
		return this.baseMapper.powerGroupAreaByDate(timeValue, areaName, order);
	}
}
